- /* sdfexpow.cpp by K.Tsuru */
- // function ID 3302 DRADIX
- /***********************************
- SDouble class
- It provides e^n : n-th power of E().
- exp(n) < DRADIX^DRADIX_EXP_MAX
- ************************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SDouble Expower(long n){
- if(n == 0) return 1.0;
-
- SDouble exp1;
- if(n > 0) exp1 = E();
- else exp1 = RecE(); // 1/E()
-
- // Check the condition "exp(n) < DRADIX^DRADIXEXP_MAX" in Dpow() function.
- return Dpow(exp1, labs(n));
- }
sdfexpow.cpp : last modifiled at 2016/09/02 11:13:34(505 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).